<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/html">
<head>
    <meta charset="UTF-8">
    <title>显示数据</title>
<!-- # 在线css样式表 # 在线js脚本控制-->
    <link href="http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css" rel="stylesheet">
    <script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script>
</head>
<body>
{% if message!=''%}
<script type="text/javascript">
    var showmessage = '{{ message|tojson }}';
    alert(showmessage)

</script>
{%else%}

{%endif -%}
<div align="center">
  学生基本信息
</div>
<div class="container">
    <div class = "col-sm-6 col-sm-offset-4">
<!--        <a href="/static/add.html">新增</a>-->
        <table border="1">
<!--            <caption align="center">学生基本信息</caption>-->
            <tr>
                {% for a in fields -%}
                <td align="center">{{a}}</td>
                {%endfor -%}
            </tr>
            {%for item in datas%}
            <tr>
                {%for a in item%}
                <td align="center">{{a}}</td>
                {%endfor -%}
            </tr>
            {%endfor -%}
        </table>
        <a href="/lxkmodify?stu_id={{datas[0][0]}}">修改密码</a>
    </div>
</div>

<div align="center">
  学生选课信息
</div>
<div class="container">
    <div class = "col-sm-12 col-sm-offset-4">
        <form method="post" action="/lxkshow">
            &nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp课程名：<input type="text" name="classname">
            <input type="submit" value="查询">
        </form>
        <table border="1">
<!--            <caption align="center">学生选课信息</caption>-->
<!--            输出表头信息和相应功能名称-->
            <tr>
                {% for a in classfields -%}
                <td align="center">{{a}}</td>
                {%endfor -%}
            </tr>
            {%for item in classdatas%}
            <tr>
                {%for a in item%}
                <td align="center">{{a}}</td>
                {%endfor -%}
            </tr>
            {%endfor -%}
        </table>
        <a href="/lxkaddclass?stu_id={{datas[0][0]}}">选课</a>
        <a href="/lxkremoveclass?stu_id={{datas[0][0]}}">退课</a>
        <a href="/lxkshow">选课信息</a>
        <p><h3 align='center'><a href="/">返回</a></h3></p>
    </div>
</div>
</body>
</html>